package com.samsung.dao.vote;

import java.util.List;
import java.util.Map;

import com.samsung.dto.vote.VoteDetailDto;
import com.samsung.dto.vote.VoteReportDto;
import com.samsung.model.vote.VoteRecord;

public interface VoteHistoryMapper {
    int deleteByPrimaryKey(String hid);

    int insert(VoteRecord record);

    int insertSelective(VoteRecord record);

    VoteRecord selectByPrimaryKey(String hid);

    int updateByPrimaryKeySelective(VoteRecord record);

    int updateByPrimaryKey(VoteRecord record);
    
    List<VoteReportDto> statByTopic(String tid);

	Integer getVoterCountByTopic(String topicId);
	
	Integer getCountByUserAndIP(Map<String, String> map);
	
	/**
	 * 新增开始
	 */
	String getVoteType(String tid);
	
	List<Map<String, Object>> getVoteDetail(String tid);
	
	List<VoteDetailDto> getVoteDetailCt(String tid);
	/**
	 * 新增结束
	 */
}